import $http from "@/utils/http";

export async function captchaApi(){ //async类似加锁修饰，必须等返回结果，awsit配套使用
    return await $http.post('captcha');
}
 
export async function loginApi(params){
    return await $http.post("login",params);
}

export async function logoutApi(){
    return await $http.post("logout");
}

export async function getInfoApi(){
    return await $http.get("getInfo");
}